package cn.ztydata.teachingsystem.heaven.entity;

import java.io.Serializable;

/**
 * Created by kazaff on 2014/12/5.
 */
public class User implements Serializable {

    private Long userId;     //用户编号
    private String number;  //工号
    private String password;
    private int role;       //身份
    private String name;



    public User(){}
    public User(Long userId, String name, int role, String number, String password){
        this.userId = userId;
        this.name = name;
        this.role = role;
        this.number = number;
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getRole() {
        return role;
    }

    public void setRole(int role) {
        this.role = role;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "UserInfo{" +
                "userId=" + userId +
                ", number='" + number + '\'' +
                ", password='" + password + '\'' +
                ", role=" + role +
                ", name='" + name + '\'' +
                '}';
    }
}
